package com.aaa.web.service.batterymangerservice;

import com.aaa.entity.BatteryPosition;
import com.aaa.web.commons.BatteryInfoQuery;
import com.aaa.web.commons.Result;

import java.util.List;
import java.util.Map;

/**
 * com.aaa.web.service.batterymangerservice.BatteryMangerBiz interface
 *
 * @author Kevin Jia
 * @interface:BatteryMangerBiz
 * @Date:2018/12/19 16:31
 */
public interface BatteryMangerBiz {
    /**
     * @Description: 获取标记
     * @Param: String lng,String lat
     * @return: List<Object>
     * @Author: Kevin Jia
     * @Date: 2018/12/20
     * @Time: 15:54
     */
    List<BatteryPosition> getPosition(String lng, String lat);


    /**
     * @Description: 获取当前学校充电点信息
     * @Param: query
     * @Param: batteryPosition
     * @return: BatteryPosition
     */
    Map getBatteryInfo(BatteryInfoQuery query,BatteryPosition batteryPosition);

    /**
     * @Description: 根据学校代码或学校名称查询学校
     * @Param: String
     * @Param: query
     * @return:
     */
    Map getSchools(String school,BatteryInfoQuery query);

    /**
     * @Description: 添加电瓶点
     * @Param: BatteryPosition
     * @return: Map
     */
    Result InsertBatteryPosition(BatteryPosition batteryPosition);

    /**
     * @Description: 修改
     * @Param: BatteryPosition
     * @return: Result
     */
    Result updateBatteryInfo(BatteryPosition batteryPosition);
    /**
     * @Description: 删除
     * @Param: String
     * @return: Result
     */
    Result delBatteryInfo(String id);
}
